#include "info.h"

Info::Info(QString bd,  QVector<QString> in, QString sn, QString so, QString l1, QString l2): scuola_new(sn), scuola_old(so), birthday(bd), interests(in), link1(l1), link2(l2){}

Info::Info(const Info& in){
    cout<<"CopiaInfo"<<endl;
    scuola_new= in.scuola_new;
    scuola_old= in.scuola_old;
    birthday= in.birthday;
    link1= in.link1;
    link2= in.link2;
    int i=0;
    for(QVector<QString>::iterator it= const_cast<Info&>(in).interests.begin();it!= const_cast<Info&>(in).interests.end();it++,i++){
        interests.insert(i,(*it));
    }
}

QString Info::getS1() const{
    return scuola_old;
}

QString Info::getS2() const{
    return scuola_new;
}

QString Info::getBd() const{
    return birthday;
}

QVector<QString> Info::getI() const{
    return interests;
}

QString Info::getLink1() const{
    return link1;
}

QString Info::getLink2() const{
    return link2;
}
